import http from "@/utils/http";
/**
 * 首页-广告区域-轮播图
 * @param {number} distributionSite 1-首页 2-其他

 */
export const getHomeBanner = (distributionSite = 1) => {
    return http({
        url: "/home/banner",
        data: { distributionSite }
    })
}
/**
 * 
*首页-前台分类
 */
export const getHomeCategoryMutli = () => {
    return http({
        url: "/home/category/mutli"
    })
}
/**
 * 
 */
export const getHomeHotMutli = () => {
    return http({
        url: "/home/hot/mutli"
    })
}

/**
 * 
*首页-前台分类
 */
export const getHomeNew = () => {
    return http({
        url: "/home/new"
    })
}
/**
 * 
*猜你喜欢-小程序
 */
export const getHomeGuessLike = (data) => {
    return http({
        url: "/home/goods/guessLike",
        data
    })
}
/**
 * 根据人气推荐模范响应返回数据
 * @param {*} data 
 * @returns 
 */
export const getHomeRecommend = (url, data = {}) => {
    return http({
        url,
        data
    })
}